
public class WarApp {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Spartan jefeMaestro = new Spartan("john-117", 100, 50, 50);
		
		Covenant elite1 = new Covenant("elite-1", 70, 10, 10);
		Covenant elite2 = new Covenant("elite-2", 70, 10, 10);
		
		do {
			
			elite1.ataca(jefeMaestro);
			elite2.ataca(jefeMaestro);
			jefeMaestro.ataca(elite1);
			jefeMaestro.ataca(elite2);
			
		} while (Spartan.numSpartans != 0 && Covenant.numCovenants != 0);
		
		if (Spartan.numSpartans > 0)
			System.out.println("Ganan los humanos");
		else
			System.out.println("Ganan los Covenant");
		
		
	}

}
